package www.woniuxy.com.class112.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import www.woniuxy.com.class112.entity.SpecialAgents;
import www.woniuxy.com.class112.entity.SpecialAgentsExample;

public interface SpecialAgentsMapper {
    long countByExample(SpecialAgentsExample example);

    int deleteByExample(SpecialAgentsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(SpecialAgents record);

    int insertSelective(SpecialAgents record);

    List<SpecialAgents> selectByExample(SpecialAgentsExample example);

    SpecialAgents selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") SpecialAgents record, @Param("example") SpecialAgentsExample example);

    int updateByExample(@Param("record") SpecialAgents record, @Param("example") SpecialAgentsExample example);

    int updateByPrimaryKeySelective(SpecialAgents record);

    int updateByPrimaryKey(SpecialAgents record);

    void selectAgentInfo(SpecialAgents toBean);
    @Select("select name from special_agents where id=#{id}")
    String selectAgentName(Long id);
    @Select("select * from special_agents where user_id=#{id}")
    SpecialAgents selectAgentById(Long id);
}